package com.patterns.composite;

/**
 * 查杀文本病毒文件
 * 叶子节点
 * @author huangke
 *
 */
public class TextVirus implements AntivirusSoftware{
	private String textName;
	public TextVirus(String textName) {
		this.textName = textName;
	}
	public void killVirus() {
		System.out.println("查杀文本病毒文件:" + textName);
	}
}
